<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head/>
<h:body>
	<p:commandButton id="editEnactor" value="Edit" onclick="editEnactorDlg.show()"/>

	<p:dialog id="editEnactorDialog" width="600" header="Edit Goal Enactor Selection" widgetVar="editEnactorDlg"  position="center" resizable="true" modal="false" closable="true" appendToBody="">
		<h:form id="form">
        	<p:dataTable var="user" value="#{enactorTable.dataModel}" paginator="true" rows="10" paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}" rowsPerPageTemplate="5,10,15" selectionMode="single" selection="#{enactorTable.selectedUser}" id="enactorTable" lazy="true">  
	      
		    <p:column headerText="Username" sortBy="#{user.username}" filterBy="#{user.username}">  
		        <h:outputText value="#{user.username}" />  
		    </p:column>  
	      
		    <p:column headerText="Firstname" sortBy="#{user.firstName}" filterBy="#{user.firstName}">  
		        <h:outputText value="#{user.firstName}" />  
		    </p:column>  
	      
		    <p:column headerText="Lastname" sortBy="#{user.lastName}" filterBy="#{user.lastName}">  
		        <h:outputText value="#{user.lastName}" />  
		    </p:column>  
	      
	      <!-- 
		    <p:column headerText="Role" sortBy="#{user.role.title}" filterBy="#{user.role.title}">  
		        <h:outputText value="#{user.role.title}" />  
		    </p:column>   -->
        	</p:dataTable>  
	
		</h:form>
	</p:dialog>

</h:body>
</html>